package com.example.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.GoodsOrders;


/**
 * 订单Service接口
 *
 * @author kzc
 * @date 2023-04-22
 */
public interface IGoodsOrdersService extends IService<GoodsOrders>
{
    /**
     * 查询订单
     *
     * @param sgoId 订单主键
     * @return 订单
     */
    public GoodsOrders selectGoodsOrdersBySgoId(Integer sgoId);

    /**
     * 查询订单列表
     *
     * @param goodsOrders 订单
     * @return 订单集合
     */
    public List<GoodsOrders> selectGoodsOrdersList(GoodsOrders goodsOrders);

    /**
     * 新增订单
     *
     * @param goodsOrders 订单
     * @return 结果
     */
    public int insertGoodsOrders(GoodsOrders goodsOrders);

    /**
     * 修改订单
     *
     * @param goodsOrders 订单
     * @return 结果
     */
    public int updateGoodsOrders(GoodsOrders goodsOrders);

    /**
     * 批量删除订单
     *
     * @param sgoIds 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteGoodsOrdersBySgoIds(Integer[] sgoIds);

    /**
     * 删除订单信息
     *
     * @param sgoId 订单主键
     * @return 结果
     */
    public int deleteGoodsOrdersBySgoId(Integer sgoId);

    public List<GoodsOrders> getid(Integer id);

    public List<GoodsOrders> selectphone(String phone);

    public List<GoodsOrders> selectuserid(String userid);

    public int upsta(Integer sgoId);


}
